import request from "@/utils/request";

// 查询分部分项列表
export function listBsFbfx(query) {
  return request({
    url: "/base/bsFbfx/list",
    method: "get",
    params: query
  });
}
export function fbfxTreelist(query) {
  return request({
    url: "/base/bsBd/fbfxTreelist",
    method: "get",
    params: query
  });
}
// 查询分部分项详细
export function getBsFbfx(id) {
  return request({
    url: "/base/bsFbfx/" + id,
    method: "get"
  });
}

// 新增分部分项
export function addBsFbfx(data) {
  return request({
    url: "/base/bsFbfx",
    method: "post",
    data: data
  });
}

// 修改分部分项
export function updateBsFbfx(data) {
  return request({
    url: "/base/bsFbfx",
    method: "put",
    data: data
  });
}

// 删除分部分项
export function delBsFbfx(id) {
  return request({
    url: "/base/bsFbfx/" + id,
    method: "delete"
  });
}
